<ul style="margin:0 auto 0 auto;">
<?php foreach ($categories as $category):?>
<?php $courseCount=$category->getCourse()->count();?>
 	<li style="list-style:none;text-align:left">
		<?php  echo link_to($category->getName(),"category_course_list",$category);?>
		(<?php echo $courseCount;?>)		
	</li>
<?php endforeach;?>
</ul>

